
<!-- video-player.html -->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Video Player</title>
  <style>
    body, html {
      margin: 0;
      padding: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
    }
    video {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  </style>
</head>
<body>
<video id="myVideo" controls autoplay muted playsinline webkit-playsinline airplay="allow"></video>

<script>
  // JavaScript can be used here for additional functionality if needed.
  const video = document.getElementById('myVideo');
  // Set the video source dynamically or through query parameters
  const urlParams = new URLSearchParams(window.location.search);
  const videoSrc = urlParams.get('src') || 'https://example.com/path/to/your/video.mp4';
  video.src = videoSrc;

  // Optional: Add event listeners for better control over the video player
  video.addEventListener('loadedmetadata', function() {
    console.log('Video metadata loaded.');
  });

  video.addEventListener('error', function(event) {
    console.error('Video error:', event.target.error);
  });
</script>
</body>
</html>